<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>后台管理系统</title>
    <meta name="author" content="DeathGhost"/>
    <link rel="stylesheet" type="text/css" href="/admin/css/style.css">
    <!--[if lt IE 9]>
    <script src="/admin/js/html5.js"></script>
    <![endif]-->
    <script src="/admin/js/jquery.js"></script>
    <script src="/admin/js/jquery.mCustomScrollbar.concat.min.js"></script>
    <script>
        (function ($) {
            $(window).load(function () {

                $("a[rel='load-content']").click(function (e) {
                    e.preventDefault();
                    var url = $(this).attr("href");
                    $.get(url, function (data) {
                        $(".content .mCSB_container").append(data); //load new content inside .mCSB_container
                        //scroll-to appended content 
                        $(".content").mCustomScrollbar("scrollTo", "h2:last");
                    });
                });

                $(".content").delegate("a[href='top']", "click", function (e) {
                    e.preventDefault();
                    $(".content").mCustomScrollbar("scrollTo", $(this).attr("href"));
                });

            });
        })(jQuery);
    </script>
</head>

<body>
<!--header-->
<header>
    <div th:replace="admin/topBar::heater"></div>
</header>
<!--aside nav 开始-->

<aside class="lt_aside_nav content mCustomScrollbar">
    <div th:replace="admin/leftBar::left"></div>
</aside>
<!--aside nav结束-->

<section class="rt_wrap content mCustomScrollbar">
    <div class="rt_content">
        <div class="page_title">
            <h2 class="fl">编辑商品</h2>
            <a class="fr top_rt_btn" href="./product_list.html">返回商品列表</a>
        </div>
        <section>
            <form th:action="@{/Commodity/UpdateGoods(goodsId=${goods.goodsId})}" method="post"
                  enctype="multipart/form-data">
                <ul class="ulColumn2">
                    <li>
                        <span class="item_name" style="width:120px;">商品名称：</span>
                        <input name="goodsName" th:value="${goods.goodsName}" type="text" class="textbox textbox_295"
                               placeholder="商品名称..."/>
                        <span class="errorTips">错误提示信息...</span>
                    </li>
                    <li>
                        <span class="item_name" style="width:120px;">价格：</span>
                        <input name="goodsPrice" th:value="${goods.goodsPrice}" type="number" class="textbox"
                               placeholder="商品价格..."/>
                        <span class="errorTips">错误提示信息...</span>
                    </li>
                    <li>
                        <span class="item_name" style="width:120px;">简介：</span>
                        <input name="goodsIntroduce" th:value="${goods.goodsIntroduce}" type="text" class="textbox"
                               placeholder="商品简介..."/>
                        <span class="errorTips">错误提示信息...</span>
                    </li>
                    <li>
                        <span class="item_name" style="width:120px;">上传图片：</span>
                        <label class="uploadImg">
                            <input name="file" type="file"/>
                            <span>上传图片</span>
                        </label>
                    </li>
                    <li>
                        <input type="submit" class="textbox" value="提交">
                    </li>
                </ul>
            </form>
        </section>
    </div>
</section>
<script src="/admin/js/ueditor.config.js"></script>
<script src="/admin/js/ueditor.all.min.js">
</script>
</body>

</html>